<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <link rel="stylesheet" href="./../../helpwin.css">
      <title>MATLAB File Help: prtRvMixture/prtRvMixture</title>
   </head>
   <body>
      <!--Single-page help-->
      <table border="0" cellspacing="0" width="100%">
         <tr class="subheader">
            <td class="headertitle">MATLAB File Help: prtRvMixture/prtRvMixture</td>
            
            
         </tr>
      </table>
      <div class="title">prtRvMixture/prtRvMixture</div>
      <div class="helptext"><pre><!--helptext -->  <span class="helptopic">prtRvMixture</span>  Mixture Random Variable
 
    RV = <span class="helptopic">prtRvMixture</span> creates a <span class="helptopic">prtRvMixture</span> object with empty
    mixingProportions and components. These parameters can be set
    manually or by calling the MLE method.     
 
    The <span class="helptopic">prtRvMixture</span> class is used to implement mixtures of prtRvs. The
    base prtRv object must implement the weightedMle() method.
 
    RV = <span class="helptopic">prtRvMixture</span>(PROPERTY1, VALUE1,...) creates a <span class="helptopic">prtRvMixture</span>
    object RV with properties as specified by PROPERTY/VALUE pairs.
 
    A <span class="helptopic">prtRvMixture</span> object inherits all properties from the prtRv class.
    In addition, it has the following properties:
 
    components        - A vector of prtRv objects. The length of the
                        array specifies the number of components in the
                        mixture. The component RV objects must all have
                        the same dimensionality.
    mixingProportions - A discrete probability vector, representing the
                        probability of each component in the mixture.
 
   A <span class="helptopic">prtRvMixture</span> object inherits all methods from the prtRv class.
   The MLE method can be used to estimate the distribution parameters
   from data.
 
   Examples:
        ds = prtDataGenOldFaithful;      % Load a data set
   
        % Create a <span class="helptopic">prtRvMixture</span> object consistig of 2 multivariate
        % normal objects
        rv = <span class="helptopic">prtRvMixture</span>('components',repmat(prtRvMvn,1,2));
 
        rv = mle(rv,ds);                 % Compute the ML estimate
        plotPdf(rv);                     % Plot the estimated PDF
        hold on;
        plot(ds);                        % Overlay the original data</pre></div><!--after help --><!--seeAlso--><div class="footerlinktitle">See also</div><div class="footerlink"> <a href="./../prtRv.html">prtRv</a>, <a href="./../prtRvMvn.html">prtRvMvn</a>, <a href="./../prtRvGmm.html">prtRvGmm</a>, <a href="./../prtRvMultinomial.html">prtRvMultinomial</a>,
    <a href="./../prtRvUniform.html">prtRvUniform</a>, <a href="./../prtRvUniformImproper.html">prtRvUniformImproper</a>, <a href="./../prtRvVq.html">prtRvVq</a>
</div>
   </body>
</html>